import * as actionTypes from '../actionTypes'

const initialState = {
    login:false
}

const login = (state = initialState, action) => {
    switch (action.type) {
        case actionTypes.USER_LOGIN_SUCCESS:
            return {
                ...state,
                login: true
            }
            break;
        default:
            return state;
    }
}
export default login;